<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
  <head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title>Admin - Editing post "${post.title}"</title>
</head>
<body>
    <p><a href="/">View Site</a> <a href="/admin/">Admin Home</a></p>
    <form action="/admin/save" method="post">
        <input type="hidden" name="id" value="${post.id}" />
        <table>
            <tr>
                <th>Title:</th>
                <td><input type="text" size="25" name="title" value="${post.title}" /></td>
            </tr>
            <tr>
                <td colspan="2"><textarea name="content" cols="50" rows="20" py:content="post.content"></textarea></td>
            </tr>
            <tr>
                <th>Published?</th>
                <td><input type="checkbox" name="publish" checked="${tg.checker(post.is_published)}" id="publish" /></td>
            </tr>
            <tr>
                <td colspan="2"><input type="submit" name="submit" value="Save" /></td>
            </tr>
        </table>
    </form>

</body>
</html>